/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.logical.allhit.gui.action;

import com.logical.allhit.gui.MainFrom;
import com.logical.allhit.util.MsgLogger;
import java.awt.Event;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;

/**
 *
 * @author Sanjeet Jha
 */
public class ClearLogAction extends AbstractAction{

    public ClearLogAction() {
        putValue(NAME, bundle.getString("clear.name"));
        putValue(SHORT_DESCRIPTION, bundle.getString("clear.shortdis"));
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_2, Event.CTRL_MASK));
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        MsgLogger.getInstance().clearLog();
    }
    
    
    
}
